/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.money.mapper;

import com.money.entity.Article;
import com.money.mapper.SqlMapper;
import java.util.List;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
 *
 * @author Eason
 */
@Repository("articleMapper")
public interface ArticleMapper extends SqlMapper {

    public List getAllArticle();

    public List getByType(String type);

    public List getBySubType(String subType);

    public Article getArticleById(int id);

    public void addArticle(Article article);

    public void editAriticle(Article article);

    public void removeArticle(int id);
}
